<?php

namespace Medicina\BackendBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class PersonaInscriptaType extends AbstractType {

    public function buildForm(FormBuilder $builder, array $options) {
        $builder
                ->add('fechaNotificacion', 'date', array(
                    'widget' => 'single_text',
                    'format' => 'dd/MM/yyyy',
                    'attr' => array('class' => 'date span12'),
                    'label' => "Fecha de Notificación",'required' => false
                ))
                ->add('aceptado', 'checkbox', array(
                    'label' => 'Aceptado',
                     'attr' => array('class' => 'span12'),
                    'required' => false,))
                ->add('gano', 'checkbox', array(
                    'label' => 'Gano',
                     'attr' => array('class' => 'span12'),
                    'required' => false,))
                ->add('persona', 'entity', array('class' => 'Medicina\KernelBundle\Entity\Persona', 'attr' => array('class' => 'select_inscripto')));
               
        ;
    }

    public function getDefaultOptions(array $options) {
        return array('data_class' => 'Medicina\KernelBundle\Entity\PersonaInscripta');
    }

    public function getName() {
        return 'PersonaInscriptaType';
    }

}

?>
